﻿﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8" isELIgnored="false" %>
<% String ip="172.21.64.152"; %>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>小米商城-个人中心</title>
		<link rel="stylesheet" type="text/css" href="css/style.css">
	</head>
	<style type="text/css">
		body{ text-align:center}
		#divcss5{margin:0 auto;}
	</style>
	<body>

	<!-- start header -->
	<jsp:include page="include/top.jsp"></jsp:include>
	<!--end header -->

	<!-- start banner_x -->
	<jsp:include page="include/seacher.jsp"></jsp:include>
<!-- end banner_x -->
<!-- self_info -->
	<div class="grzxbj">
		<div class="selfinfo center">
		<div class="lfnav fl">
			<div class="ddzx">订单中心</div>
			<div class="subddzx">
				<ul>

					<li><a href="dingdanzhongxin.jsp" >我的订单</a></li>
				</ul>
			</div>
			<div class="ddzx">个人中心</div>
			<div class="subddzx">
				<ul>
					<li><a href="person" style="color:#ff6700;font-weight:bold;">我的个人中心</a></li>
					<li><a href="pageshoucang" >我的收藏</a></li>
				</ul>
			</div>
		</div>
		<div class="rtcont fr">
			<div class="grzlbt ml40"><img src="${path}/${picture}" height="43" width="43" /></div>

			<form action="/userInfoManage" style="align-content: center" method="post" enctype="multipart/form-data">
				<div class="subgrzl ml40"><span>上传头像</span>
					<span>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</span>
					<span><input   type="file" name="pic" ></span>
				</div>
			<div class="subgrzl ml40"><span>昵称</span>
				<span>
					<input id="nick" type="text" name="nick" value="${nick} " disabled="disabled" >
				</span>
				<span>
					<input type="button" name="edit" value="编辑" onclick="nickChable()" >
				</span>
			</div>
				<div class="subgrzl ml40">
					<span>密码更改</span>
					<span><input id="password" type="text" name="password" value="${password}" disabled="disabled"></span>
					<span><input type="button" name="edit" value="编辑" onclick="passwordChable()" ></span>
				</div>
				<div class="subgrzl ml40">
					<span>手机号</span>
					<span><input id="tel"  type="text" name="tel" value="${tel}" disabled="disabled"></span>
					<span><input type="button" name="edit" value="编辑" onclick="telChable()" ></span>
				</div>
			<div class="subgrzl ml40">
				<span>邮政编码</span>
				<span><input id="post_code" type="number" name="postCode" value="${postCode}" disabled="disabled"></span>
				<span><input type="button" name="edit" value="编辑" onclick="postChable()" ></span>
			</div>
			<div class="subgrzl ml40">
				<span>电子邮件</span>
				<span><input id="e_mail" type="text" name="eMail" value="${eMail}" disabled="disabled"></span>
				<span><input type="button" name="edit" value="编辑" onclick="emailChable()" ></span>
			</div>
			<div class="subgrzl ml40">
				<span>收货地址</span>
				<span><input id="address" type="text" name="address" value="${address}" disabled="disabled"></span>
				<span><input type="button" name="edit" value="编辑" onclick="addressChable()" ></span>
			</div>
            <div class="subgrzl ml40">
				<span>真实姓名</span>
				<span><input id="true_name" type="text" name="trueName" value="${trueName}" disabled="disabled"></span>
				<span><input type="button" name="edit" value="编辑" onclick="nameChable()" ></span>
			</div >
			<div id="divcss5">
				<input class="submit" type="submit" name="submit" value="确认修改"  >
			</div>
			</form>
		</div>
		<div class="clear"></div>
		</div>
	</div>
<!-- self_info -->
		
		<footer class="mt20 center">			
			<div class="mt20">小米商城|MIUI|米聊|多看书城|小米路由器|视频电话|小米天猫店|小米淘宝直营店|小米网盟|小米移动|隐私政策|Select Region</div>
			<div>©mi.com 京ICP证110507号 京ICP备10046444号 京公网安备11010802020134号 京网文[2014]0059-0009号</div> 
			<div>违法和不良信息举报电话：185-0130-1238，本网站所列数据，除特殊说明，所有数据均出自我司实验室测试</div>
		</footer>

	<script type="text/javascript">
		function passwordChable() {
			document.getElementById('password').disabled="";
        }
            function nickChable() {
                document.getElementById('nick').disabled = "";
            }
        function telChable() {
            document.getElementById('tel').disabled = "";
        }
        function postChable() {
            document.getElementById('post_code').disabled = "";
        }
        function emailChable() {
            document.getElementById('e_mail').disabled = "";
        }
        function addressChable() {
            document.getElementById('address').disabled = "";
        }
        function nameChable() {
            document.getElementById('true_name').disabled = "";
        }
	</script>
	</body>
</html>